﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/SystemManagement/Views/Shared/LigerUI.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    UserRoleSelect
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">

    

    $(function () { 
    
        grid = $("#maingrid").ligerGrid({
        columns: [{ display: '主键', name: 'RoleId', isAllowHide: false, hide: 1, width: 40 },
            { display: '角色名', name: 'RoleName' },
            { display: '描述', name: 'Description' }],
        //url: encodeURI('<%=Url.Action("GetUserRoles","User")%>'+ '/?UserId='+ <%=ViewData["UserId"]%>),
        sortName: 'RoleId',
        data: <%=ViewData["roles"]%>,
        dataAction: 'server',
        usePager: false,
        checkbox: true,
        rownumbers: true,
        width: '100%',
        height: '100%',
        InWindow:true
        });
    
    
    })


    function f_select()
    { 
        var rows = grid.getCheckedRows(); 
            
        return rows; 
    }

    </script>

    <style type="text/css">
    body
    {
         overflow:hidden;
    }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div id="maingrid" style="margin: 0; padding: 0">
    </div>
</asp:Content>
